package com.whu.waterworks.util;


/**
 * 水厂id、站点之间互相转换
 * @author wangjinsong
 *
 */
public class CodeTransformationUtil {
    public static String getWaterplantCode(String stationCode)
    {
        String code=stationCode.trim();
        code = code.substring(0,6)+"000"+code.substring(6,9);
        return code;
    }
    public static String getStationCodePrefix(String waterplantCode)
    {
    	
    	String code = waterplantCode.substring(0,6)+waterplantCode.substring(9,12);
    	return code;
    }
}
